/*
 * @Author: liu
 * @Date: 2024-04-28 00:05:56
 * @LastEditors: liu
 * @LastEditTime: 2024-05-03 20:05:44
 * @FilePath: \yyx_ser_ts\app\model\Chapter.ts
 * @Description:
 * 天道酬勤
 */
import { Model, Table, Column, HasMany } from 'sequelize-typescript'
import Video from './Lesson'

@Table
export default class Chapter extends Model {
  @Column
  chapterName!: string

  @Column
  course_id!: number

  @Column
  description!: string

  @Column
  sort!: number

  @Column
  status!: number

  @HasMany(() => Video)
  lessInfo?: Chapter
}
